import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import svgr from "vite-plugin-svgr"
import { comlink } from "vite-plugin-comlink"

// https://vitejs.dev/config/
export default defineConfig({
  base: 'webapp/myapp',
  plugins: [react(), svgr(), comlink()],
  build: {
    outDir: './dist/webapp/myapp',
    sourcemap: false
  },
  worker: {
    plugins: () => ([
      comlink()
    ])
  }
})
